#include "pch.hpp"
#include "alloc_types.hpp"

#include <boostext/exception.hpp>




const char* alloc::toString(type t)
{
	switch(t)
	{
	case unknown: return "unknown";
	case new_:    return "new";
	case new_array: return "new[]";
	case delete_:   return "delete";
	case delete_array: return "delete[]";
	default: BOOSTEXT_THROW(boostext::invalid_value_exception(t));
	}
}
///////////////////////////////////////////////////////////////////////////////////////////////////
